package ledger

import (
	"jlpay-sdk-go/pkg/jlpay/core"
	"jlpay-sdk-go/pkg/jlpay/models/ledger"
	"jlpay-sdk-go/pkg/jlpay/services"
)

// NotifyService 通知服务
type NotifyService struct {
	*services.BaseService
}

// NewNotifyService 创建通知服务
func NewNotifyService(config *core.Config) *NotifyService {
	return &NotifyService{
		BaseService: services.NewBaseService(config),
	}
}

// ParseNotify 解析通知消息
func (s *NotifyService) ParseNotify(notifyData map[string]interface{}) *ledger.NotifyDto {
	return ledger.NewNotifyDto(notifyData)
}
